﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GluePathModule
{
    public class MotionItemArc : MotionItemBase
    {
        public PointData PointStart { get; set; }
        public PointData PointMid { get; set; }
        public PointData PointEnd { get; set; }
        public bool IsCW { get; set; }
        public double SweeAngle { get; set; }
        public MotionItemArc(SpdData spdDataInput, PointData pointDataStartInput, PointData pointDataMidInput, PointData pointDataEndInput,bool bIsCWInput,double dSweeAngle)
        {
            PointStart = new PointData(pointDataStartInput);
            PointMid = new PointData(pointDataMidInput);
            PointEnd = new PointData(pointDataEndInput);
            spdData = new SpdData(spdDataInput);
            IsCW = bIsCWInput;
            SweeAngle = dSweeAngle;

        }
        public override string ToString()
        {
            string strReturn = spdData.ToString() + "," + "StartPos--" + PointStart.ToString()
                + "," + "PointMid--" + PointMid.ToString()
                + "," + "PointEnd--" + PointEnd.ToString()
                + "," + "CW:" + IsCW.ToString()
                + "," + "SweeAngle:" + SweeAngle.ToString();
            return strReturn;
            
        }
    }
}
